#ifndef AST_DECLARATIONS_ENUMERATOR_LIST_H
#define AST_DECLARATIONS_ENUMERATOR_LIST_H

#include "../ASTNode.h"

class Enumerator;
/*
C99  6.7.2.2
enumerator-list:
		enumerator
		enumerator-list   ,   enumerator
*/
class EnumeratorList : public ASTNode
{
protected:
	EnumeratorList(void)
		: ASTNode(ASTNode::enumerator_list){};
public:
	EnumeratorList(Enumerator * pEnum, EnumeratorList *pEnumList= NULL)
		: ASTNode(ASTNode::enumerator_list)
		, m_pEnum(pEnum)
		, m_pEnumList(pEnumList){};

	virtual ~EnumeratorList(void);

	virtual void						codeGen();
protected:
	Enumerator *					m_pEnum;
	EnumeratorList *				m_pEnumList;	//may be null
};



#endif


